﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectDoiTac
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<h2>Quản lý đối tác</h2> 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<script type="text/javascript">
		<% if (Model.DoiTacModel.InfoText != null && Model.DoiTacModel.InfoText != ""){ %>
			alert('<%= Model.DoiTacModel.InfoText %>');
		<% } %>
	</script>
	<div id="PartialDiv">
		<% Html.RenderPartial("Templates/TH_ListDoiTac", Model); %>
	</div>
	<% using (Html.BeginForm("InsertDoiTac", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", onsubmit = "return ValidateDoiTac();" }))
	{ %>
		<div style="padding-top: 40px">
			<span style="font-size:18px; font-weight:bold;">Thêm đối tác mới</span>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">TenDoiTac: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("DoiTac_TenDoiTac", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DiaChi: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("DoiTac_DiaChi", "", new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DienThoai: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("DoiTac_DienThoai", "", new { @style = "width: 190px;" })%>
							</div>
						</td>
					</tr>
                    <tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Email: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("DoiTac_Email", "", new { @style = "width: 590px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Website: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("DoiTac_Website", "", new { @style = "width: 190px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">HinhMinhHoa: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<input type="file" name="DoiTac_HinhMinhHoa" />
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
								<p>
									<input type="submit" value="Add New" />
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
</asp:Content>
